package com.project.springboot.utils.other;


public class Constants {
	/**
	 * shiro采用加密算法
	 */
	public static final String HASH_ALGORITHM = "SHA-1";
	/**
	 * 生成Hash值的迭代次数
	 */
	public static final int HASH_INTERATIONS = 1024;
	/**
	 * 生成盐的长度
	 */
	public static final int SALT_SIZE = 8;

	/**
	 * 验证码
	 */
	public static final String VALIDATE_CODE = "validateCode";

	/**
	 * 系统用户默认密码
	 */
	public static final String DEFAULT_PASSWORD = "123456";
	
	public static final String LOGIN_USER_KEY = "login_user_key";
	
	public static final String NFC_LOGIN_USER_KEY = "login_nfc_user_key";

	/**
	 * 定时任务状态:正常
	 */
	public static final Integer QUARTZ_STATUS_NOMAL = 0;
	/**
	 * 定时任务状态:暂停
	 */
	public static final Integer QUARTZ_STATUS_PUSH = 1;

	
//	public static final String IMAGE_DOMAIN = "http://10.121.1.35:8099";
	public static final String IMAGE_DOMAIN = "http://file.xs119.cn";
	
	public enum DeleteStatus {

        Enable(0, "正常"), Disable(-1, "禁用"), Deleted(1, "删除");

        public int value;
        public String name;

        DeleteStatus(int value, String name) {
            this.value = value;
            this.name = name;
        }

        public int getValue() {
            return value;
        }

        public void setValue(int value) {
            this.value = value;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public static DeleteStatus getStatusName(Integer value) {
        	DeleteStatus os = null;
            for (DeleteStatus map : DeleteStatus.values()) {
                if (value.equals(map.value)) {
                    os = map;
                    break;
                }
            }
            return os;
        }
    }

}
